<?php include _include(APP_PATH.'view/htm/header.inc.htm');?>

<!--{hook index_start.htm}-->

<ol class="breadcrumb d-none d-md-flex">

	<div class="row p-t-sm py-2 mx-0 ">
		<span class="text-muted"><span class="text-muted">主题：</span><b><?php echo $runtime['threads'];?></b></span>&nbsp;&nbsp;
		<span class="text-muted">帖子：</span><b class="text-small"><?php echo $runtime['posts'];?></b>&nbsp;&nbsp;
		<span class="text-muted">会员：</span><b class="text-small"><?php echo $runtime['users'];?></b>&nbsp;&nbsp;
		<?php if($runtime['onlines'] > 0) { ?>
		<span class="text-muted">在线：</span><b class="text-small"><?php echo $runtime['onlines'];?></b>
		<?php } ?>
	</div>

	<div class="media-body text-right">
		<!--- star 搜索 --->
		<td class="form-group" style="width: 120px;">
			<form action="?search.htm" id="search_form">
				<div class="input-group">
					<input type="text" class="form-control" placeholder="关键词" name="keyword">
					<div class="input-group-append">
						<button class="btn btn-primary" type="submit">搜索</button>
					</div>
				</div>
			</form>
		</td>
		<!--- end --->
		<a href="?thread-create-0.htm" role="button" class="btn btn-sm btn-primary"><?php echo lang('thread_create_new');?></a>
	</div>
</ol>

<div class="row">
	<div class="col-lg-12 main">
		<!--{hook index_main_start.htm}-->
		<div class="card card-threadlist">
			<div class="card-header">
				<ul class="nav nav-tabs card-header-tabs">
					<li class="nav-item">
						<a class="nav-link <?php echo $active == 'default' ? 'active' : '';?>" href="./<?php echo url("$route");?>"><?php echo lang('new_thread');?></a>
					</li>
					<!--{hook index_thread_list_nav_item_after.htm}-->
				</ul>
			</div>
			<div class="card-body">
				<ul class="list-unstyled threadlist mb-0">
					<!--{hook index_threadlist_before.htm}-->
					<?php include _include(APP_PATH.'view/htm/thread_list.inc.htm');?>
					<!--{hook index_threadlist_after.htm}-->
				</ul>
			</div>
		</div>
		
		<?php include _include(APP_PATH.'view/htm/thread_list_mod.inc.htm');?>
		
		<!--{hook index_page_before.htm}-->
		<nav class="my-3"><ul class="pagination justify-content-center flex-wrap"><?php echo $pagination; ?></ul></nav>
		<!--{hook index_page_end.htm}-->
	</div>
</div>

<!--{hook index_end.htm}-->

<?php include _include(APP_PATH.'view/htm/footer.inc.htm');?>

<script>
$('li[data-active="fid-0"]').addClass('active');
</script>

<!--{hook index_js.htm}-->